﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace IronOne.SalesOne.SalesOneWeb.CustomerServices
{
    public partial class PendingProposalDetails : SOSecurityPage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            try
            {
                ValidateUserCredentials(Request.Url.LocalPath);

                if (Session["cont"] != null)
                {
                    GridViewRow rw = (GridViewRow)Session["cont"];
                    lblContract.Text = rw.Cells[3].Text;
                    lblProposalDate.Text = rw.Cells[7].Text;
                    lblPendingReq.Text = rw.Cells[5].Text;
                    lblComments.Text = rw.Cells[8].Text;
                    lblLifeNo.Text = rw.Cells[4].Text;
                    lblLifeName.Text = rw.Cells[9].Text;
                    lblPendingStatus.Text = rw.Cells[10].Text;

                    btnCancel.Visible = true;
                    Session.Remove("cont");

                }
            }
            catch (Exception)
            {
            }
            
        }

        protected void btnCancel_Click(object sender, EventArgs e)
        {
            Response.Redirect("~/CustomerServices/AcknowledgeSlip.aspx?cs=pep");
        }
    }
}
